#pragma once

class TexSelUI;

class TilesetUI : public DialogProto
{
	std::vector<Checkbox<TilesetUI>*> m_pBoxes;
	void CheckBoxProc(Checkbox<TilesetUI>*, ui32);
	void ScrollBarProc(VScrollbar<TilesetUI>*, ui32);
	ui32 m_curPos;
	TexSelUI* m_pTexSel;
public:
	TilesetUI(TexSelUI* pSelUI);
	void Hide() { m_dialog->m_visible = false; }
	void Show() { m_dialog->m_visible = true; }
	void Uncheck()
	{
		for(ui32 i = 0; i < m_pBoxes.size(); ++i)
			m_pBoxes[i]->m_state = 0;
	}
};